﻿using Magicodes.ExporterAndImporter.Core;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Text;

namespace NP.BPMReportPlatform.AuthorizationUserManager.Dtos
{
    public class PlatformManageRoleUserDto
    {
        public Guid UserId { get; set; }

        public Guid? RoleId { get; set; }

        public Guid? RelationId { get; set; }

        public string RoleName { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        public string Name { get; set; }
    }

    public class PlatformManageUserDto
    {
        public Guid Id { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        public string Name { get; set; }

        public bool IsDeleted { get; set; }

        public DateTime CreationTime { get; set; }
    }

    public class ImportTemplateModel
    {
        [ExporterHeader("角色名称")]
        [ImporterHeader(Name = "角色名称")]
        public string RoleName { get; set; }

        [ExporterHeader("工号")]
        [ImporterHeader(Name = "工号")]
        public string UserName { get; set; }
    }

    public class InsertBindUserRoleModel
    {
        public Guid UserId { get; set; }

        public Guid RoleId { get; set; }
    }
}
